#!/bin/bash
###
 # @Author: admin@attacker.club
 # @Date: 2022-09-14 21:38:54
 # @LastEditTime: 2022-09-29 16:44:42
 # @Description: 
### 

docker run -d  \
--name redis \
--restart always \
-p 6379:6379 \
-v /home/docker-data/redis/data:/data \
redis:latest  --appendonly yes --requirepass opsbase.cn



# appendonly 启动后数据持久化
# requirepass 指定密码